package com.ym.medical.service;

import com.github.pagehelper.PageInfo;
import com.ym.core.utils.tkmybatis.IBaseSV;
import com.ym.medical.domain.entity.PatientDetailEntity;
import com.ym.medical.domain.param.PatientDetailParam;

/**
 * 患者家人Service接口
 *
 * @author ym
 * @date 2020-08-21
 */
public interface IPatientDetailSV extends IBaseSV<PatientDetailEntity> {


	/**
	 * 更新
	 */
	void update(PatientDetailEntity patientDetail);

	/**
	 * Load查询
	 */
	PatientDetailEntity findById(long id);


	/**
	 * @param userId
	 * @return
	 */
	PatientDetailEntity selectByUserId(Long userId);

	/**
	 * 患者id 查询
	 *
	 * @param patientId
	 * @return
	 */
	PatientDetailEntity selectBypatientId(Long patientId);

	/**
	 * 查询当前登陆用户的患者列表
	 * @param model
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	PageInfo<PatientDetailEntity> listPagePatient(PatientDetailParam model, int pageNum, int pageSize);

	/**
	 * 根据订单id查询患者信息
	 * @param orderId
	 * @return
	 */
	PatientDetailEntity selectByOrderId(Long orderId);
}
